<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<a href="add">Dodaj lektora</a>
	<table>
		<tr>
			<th>Imie</th>
			<th>Nazwisko</th>
			<th>Język</th>
			<th>O sobie</th>
		</tr>
		<c:forEach items="${lektorzy}" var="item">
			<tr>
				<td>${item.imie}</td>
				<td>${item.nazwisko}</td>
				<td>${item.jezyk}</td>
				<td>${item.about}</td>
				<td><a href="edit?id=<c:out value="${item.id}"/>">Edytuj</a></td>
				<td><a href="delete?id=<c:out value="${item.id}"/>">Usuń</a></td>
			</tr>
		</c:forEach>
	</table>
</body>
</html>